import http from "../util/http.js";

const baseURL = import.meta.env.VITE_APP_BASE_URL;

export const getRoot = () => {
    return http.get(baseURL + "fileDirectory/root");
};

export const getChildren = (path) => {
    return http.post(`${baseURL}fileDirectory/children`, {filePath: path});
};